package com.seon.service.impl;

import com.pojo.User;
import com.self.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Seon
 * @date 2022/9/12 13:03
 */
@Slf4j
@Service(weight = 100)
public class UserServiceImpl implements UserService {
    public String sayHello() {
        return "How could you know it is not a blessing?";
    }

    public List<User> getAllUser() {
        List<User> userList = new ArrayList<User>();
        userList.add(new User(0,"123","123123"));
        userList.add(new User(1, "123", "tnnd"));
        return userList;
    }
}
